﻿namespace Basic.Repository.SqlSugar;

/// <summary>
/// DBConfig configuration
/// </summary>
public class DBConfig
{
    public bool MutiDBEnabled { get; set; }
    public bool SqlAOP { get; set; }

    public bool CQRSEnabled { get; set; }

    public string MainDb { get; set; }


    public List<MutiDBOperate> DataBase { get; set; }

}

public class MutiDBOperate
{

    public bool Enabled { get; set; }

    public string ConnId { get; set; }

    public int HitRate { get; set; }

    public string Connection { get; set; }

    public DbType DbType { get; set; }
}

//public enum DataBaseType
//{
//    MySql = 0,
//    SqlServer = 1,
//    Sqlite = 2,
//    Oracle = 3,
//    PostgreSQL = 4,
//    Dm = 5,
//    Kdbndp = 6,
//    Oscar = 7,
//    MySqlConnector = 8,
//    Access = 9,
//    OpenGauss = 10,
//    QuestDB = 11,
//    HG = 12,
//    ClickHouse = 13,
//    GBase = 14,
//    Odbc = 15,
//    OceanBaseForOracle = 16,
//    TDengine = 17,
//    GaussDB = 18,
//    OceanBase = 19,
//    Tidb = 20,
//    Vastbase = 21,
//    Custom = 900
//}


